﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AgencyEntityLib.BaseEntity;
using System.Web.UI.WebControls;
using Ecopsy.DataTier;


namespace AgencyEntityLib.BaseEntity
{
    /// <summary>
    /// Визуальное поверхности стороны в гриднике  
    /// </summary>
    public class grdSurface:grdSide 
    {
        public grdSurface(SideListWithContracts.SideContractItemBox Source)
        {
            _Source = Source;
            
        }
        public override string ID
        {
            get
            {
             return  Surface.ID; 
            }
            set
            {
                Surface.ID = value;
            }
        }
        public grdSurface() { }        
        public Surface Surface { get { return ((SurfaceItemBox) Source).Surface; } }
        public override string Litera
        {
            get
            {                
                return Side.Litera;
            }
        }
        public override string FullGID
        {
            get
            {
                return Source.Constraction.GID+Side.Litera+Surface.Number;
            }
        }
        public EntityList Contracts { get; set; }
        public string ConstractionTypeName { get { return grdConstraction.ConstractionTypeName; } }
        public string FullAdress { get { return grdConstraction.FullAdress; } }
        public int CurrentPrice { get { return Side.CurrentPrice; } }
        
        

    }

}